home *** CD-ROM | disk | FTP | other *** search
- Path: Dortmund.Germany.EU.net!news-intern
- From: Mattias Brunschen <mohr@sfb3.b.eunet.de>
- Newsgroups: comp.lang.c,comp.os.linux.development.apps,comp.programming,comp.unix.programmer
- Subject: Re: Changing pipe capacity
- Date: Thu, 29 Feb 1996 18:31:38 +0100
- Organization: Sender Freies Berlin
- Message-ID: <3135E2FA.59B0BCB2@sfb3.b.eunet.de>
- References: <4gt4c9$mds$1@mhade.production.compuserve.com> <4h3b9q$mok@krel.iea.com> <3135A024.4409@hipsys.co.za>
- NNTP-Posting-Host: sfb3.b.eunet.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; Linux 1.3.64 i586)
-
- Wiekus Beukes wrote:
-
- > Larry Blanchard wrote:
- > >
- > > Xavi Roig Gracia (101522.2001@CompuServe.COM) wrote:
- > > : Hi !
- > >
- > > : I need a capacity greather than 4096 bytes (for send and receive
- > > : a unique missatge between processes in a 8192 bytes format).
- > > : How can I change the default pipe capacity ?
- > > Why bother? - use a message queue instead.
- > The only problem with messages is that you cannot select() on it :-(.
- > It does not use file descriptors, so it get's ugly (SIGNALS)
- > intergrating this with sockets and timeout handlers.
- >
- > Wiekus
-
- Just another idea: Try unix-domain-sockets. Maybe they work with
- more than 4k buffer, and they definetly use file descriptors.
- BTW, Why do you need this capacity (> 4k)? I use unix-domain-sockets,
- one application writes data to it (fprintf() and fwrite()) and does a
- fflush() to be shure the buffer is transferred now, and the other
- application just does a fread() on the socket. I can't think of any
- problem with the buffer-length.
-
- Regards,
- Mattias
-